<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<script type="text/javascript">
	var say = say || {};
	say.artwork = say.artwork || {};
	say.artwork.index = say.artwork.index || {};

	say.artwork.index.classificationId = "${id}";
</script>
<script type="text/javascript" src="/static/model/say/artwork/index.js"></script>
<title>用户个人中心</title>
</head>
<body>
	<div class="mt10">
		<div class="row mb10">
			<div class="col-sm-12 col-md-12">
				<button class="btn btn-primary" type="button" id="addArtwork">新建作品</button>
			</div>
		</div>
		<div id="ARTWORK_NODE"><!-- 数据列表 --></div>
		<div id="pager" class="pagination"></div>
	</div>

</body>

<!-- 新增作品界面 -->
<script type="text/template" id="ADD_ARTWORK">
<div class="container-fluid">
<div class="row mt10">
	<div class="col-md-12">
		<form id="addArtworkForm">
			<div class="form-group">
			    <label for="account">作品名称</label>
			    <input type="text" class="form-control" id="workName" name="workName">
		  	</div>
		  	<div class="form-group">
			    <label for="workIntro">作品简介</label>
<textarea class="form-control" id="workIntro" name="workIntro"></textarea>
		  	</div>
			<div class="form-group">
			    <label for="authorName">作者名称</label>
			    <input type="text" class="form-control" id="authorName" name="authorName">
		  	</div>
		  	<div class="form-group">
			    <label for="authorIntro">作者简介</label>
<textarea class="form-control" id="authorIntro" name="authorIntro"></textarea>
		  	</div>
		</form>
	</div>
</div>
<div class="row mt10">
	<div class="col-md-12">
		<button type="button" class="btn btn-default" id="artworkAdd" >保存</button>
		<button type="button" class="btn btn-default" id="artworkCancel" >取消</button>
	</div>
</div>
</div>
</script>

<!-- 每行中的一个作品信息 -->
<script type="text/template" id="ARTWORK_ITEM">
<div class="col-sm-6 col-md-4">
	<div class="thumbnail head-point artwork-into" artworkId=<@-info.id@>>
		<!-- <img src="/static/images/zhi_logo.jpg" alt="Brand"> -->
		<div class="caption">
			<h3><@-info.workName@></h3>
			<p style="width:100%"><@-info.authorName@></p>
		</div>
	</div>
</div>
</script>

<!-- 列表每一行 -->
<script type="text/template" id="ROW_ITEM">
<div class="row" id="ARTWORK_ROW<@=i@>">

</div>
</script>

</html>